<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<div class="admin_form">
  <?php echo form_tag_for($form, '@anulacion_tesis') ?>
  <fieldset>
    <?php echo $form->renderHiddenFields(false) ?>

    <?php if ($form->hasGlobalErrors()): ?>
      <?php echo $form->renderGlobalErrors() ?>
    <?php endif; ?>

    <?php foreach($form as $name => $field): ?>
      <?php if ($field->isHidden()) continue ?>
      <div class="admin_form_row">
        <?php echo $form[$name]->renderError() ?>

        <div>
          <?php echo $form[$name]->renderLabel() ?>

          <div class="content">
            <?php echo $form[$name]->render() ?>
          </div>
        </div>

      </div>
    <?php endforeach ?>
  </fieldset>  
  
  <ul class="admin_actions">
    <li class="admin_action_show"><a href="<?php echo url_for('@tesis_show?id=' . $tesis_id)?>">Proyecto</a></li>
    <li><input type="submit" value="Guardar"></li>
  </ul>
  
  </form>
</div>
